<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 在浏览器进行存储 cookie有一个过期时间。
        console.log(document.cookie) // set get 使用插件 （js-cookie）

        // sessionStorage localStorage
        // sessionStorage.setItem("token", "Bearer 1231231321231313123132")
        // console.log(sessionStorage.getItem("token"))
        // sessionStorage.removeItem("token")
        // sessionStorage.clear()

        localStorage.setItem("token0", "Bearer 12312312223")
        localStorage.setItem("token1", "Bearer 123123122222223")
        
        for(let i = 0; i < localStorage.length; i++) {
            console.log(localStorage.getItem(localStorage.key(i)))
        }
    </script>
</body>
</html>